<?PHP
include 'm_ajax.php';

global $conf;
session_start();

$pcc = new content;
$pcc->input['category']=$_POST['id'];
$pcc->input['limit']=false;
$pcc->get_category_content();


$header_dropdown=$i;


?>

<?PHP

foreach ($pcc->data as $x)
{
	$today='';
	$today=date("Y-m-d");
	$start = substr($x['start'], 0, 10);
	
	if($x['type']=='video' && $x['status']=='enabled' && $start<=$today){	
	
	?>
	
	<div class='popout-item'>
			
			
		<div class='popout-content-item-text'><a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer" title="Go to <?PHP  echo $x['title'];?>">
		
		<?PHP  
		
		if($x['title']=='New Releases')
			{
					?>
						 <span class='popout-new-releases'><?php echo $x['title']; ?></span>
					<?PHP
			}
		else	
		{
		 echo $x['title'];
		}
		
		?>
		
		<?PHP
			
	
			if($today==$start)
			{
				?>
						 <br /><span class='popout-fresh'>Fresh Today</span>
				<?PHP
			}
			?>
			
	
			
			</a>
		<?PHP  echo $x['secondary'];?></div>
		
		<div class='popout-image-box'>
			<a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' title="Go to <?PHP  echo $x['title'];?>">
				<img src="assets/images/play-mini.png" width="60" height="24" alt="Play Mini">
			</a>
		</div>
	

	</div>
	
	<?PHP
	}
}
include 'admin/m/close.php';


?>


